exports.loginFilter=function(req,res,next){
    if(req.session.client){
        next();
    }
    else{
        res.json({msg:"ERROR"});
    }
}